package com.ocom.jobhandler.feign;

import com.alibaba.fastjson.JSONObject;
import com.ocom.common.constant.AccessServiceUrl;
import com.ocom.common.dto.AreaDto;
import com.ocom.common.request.wx.QrPageOnLoadRequest;
import com.ocom.common.request.wx.UserAccessPageSetAccessRequest;
import com.ocom.common.resp.Result;
import com.ocom.common.vo.BindMachVo;
import com.ocom.common.vo.SearchMachListVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;


@FeignClient(value = "access")
public interface AccessClientService {


    @PostMapping(AccessServiceUrl.URL_getCommNumsByComId)
    Result getCommNumsByComId(@RequestParam("companyId") Long companyId);


    @PostMapping(AccessServiceUrl.URL_getRegionInfo)
    Result getRegionInfo(@RequestBody JSONObject object);

    @PostMapping(AccessServiceUrl.URL_GetCenterTaskOfYkm)
    Result getCenterTaskOfYkm(@RequestParam("comId") Long comId,@RequestParam("regionId") Long regionId,@RequestParam("deptId") Long deptId,@RequestParam("Nums") Integer Nums);

    //定时任务
    @GetMapping(AccessServiceUrl.Url_attendanceRulesTimer)
    public  Result<List<EntityAttendanceRules>> attendanceRuleTimer() ;

}


